﻿using Hotel.DAL;
using Hotel.Model.Admin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.BLL
{
    public class AdminBLL
    {
        AdminDAL dal;
        public AdminBLL(AdminDAL dal) {
            this.dal = dal;
        }


        /// <summary>
        /// 管理员登录
        /// </summary>
        /// <param name="username">帐号</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        public T_Admin GetAdminLogin(string username, string pwd)
        {
            try
            {
                T_Admin info = dal.GetAdminLogin(username, pwd);
                return info;
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
